
	<div class="tab-pane " id="fenxiaoset">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">分销设置</div>
			<div class="panel-body" style="">
				<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">分销红包总开关</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iscomm" value="0" {if $config['iscomm']==0} checked="checked"{/if} type="radio"> 暂停
						</label>
						<label class="radio-inline">
							<input name="iscomm" value="1" {if $config['iscomm']==1} checked="checked"{/if} type="radio"> 开启
						</label>
						<span class="help-block" style="color: red;">注意：全部粉丝都有推荐资格，包含未参团的，成功推荐的，需要后台管理员审核进行发放赏金</span>
						<span class="help-block" style="color: red;">如果设置1-3，表示随机金额在1.00元到3.00元之间的带两位小数金额，例如1.01元</span>
					</div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">是否显示红包排行</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iscommshow" value="0" {if $config['iscommshow']==0} checked="checked"{/if} type="radio"> 不显示
						</label>
						<label class="radio-inline">
							<input name="iscommshow" value="1" {if $config['iscommshow']==1} checked="checked"{/if} type="radio"> 顶部显示
						</label>
						<label class="radio-inline">
							<input name="iscommshow" value="2" {if $config['iscommshow']==2} checked="checked"{/if} type="radio"> 中间显示
						</label>
						<label class="radio-inline">
							<input name="iscommshow" value="3" {if $config['iscommshow']==3} checked="checked"{/if} type="radio"> 底部显示
						</label>
						<span class="help-block">顶部:头像的下方; 中间:在顶部图片组与活动内容中间; 底部:活动内容的下方;</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">是否显示24小时红包排行</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iscommshow24" value="0" {if $config['iscommshow24']==0} checked="checked"{/if} type="radio"> 暂停
						</label>
						<label class="radio-inline">
							<input name="iscommshow24" value="1" {if $config['iscommshow24']==1} checked="checked"{/if} type="radio"> 开启
						</label>
						<span class="help-block">开启[是否显示红包排行],此选项才生效</span>
					</div>
				</div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">排行榜中包含内部员工</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="iscommshowworker" value="0" {if $config['iscommshowworker']==0} checked="checked"{/if} type="radio"> 包含内部员工
							</label>
							<label class="radio-inline">
								<input name="iscommshowworker" value="1" {if $config['iscommshowworker']==1} checked="checked"{/if} type="radio"> 不包含
							</label>
							<span class="help-block">也可以在分销管理-红包排行榜-修改某一个粉丝的昵称、红包数、红包金额</span>
						</div>
                </div>

				{if $system['fenxiao06'] == '1'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">员工提成</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm61" value="{$config['comm61']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm62" value="{$config['comm62']}" type="text">
						</div>
						<span class="help-block" >开启后,员工的卖卡提成直接发放到微信钱包里;若开启三级分销,员工的分销提成与提成都会享有</span>
					</div>
				</div>
				{/if}
			</div>
			<div class="panel-footer">用自己的公众平台,需要开通微信支付的【企业付款到零钱】，开通微信支付满90天，连续交易满30天方可申请,若没有可以用我公司的公众平台</div>
		</div>

		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">更多设置</div>
			<div class="panel-body" style="">

                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">排行榜中人数</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="isrankrenshu" value="0" {if $config['isrankrenshu']==0} checked="checked"{/if} type="radio"> 显示
							</label>
							<label class="radio-inline">
								<input name="isrankrenshu" value="1" {if $config['isrankrenshu']==1} checked="checked"{/if} type="radio"> 不显示
							</label>
						</div>
                </div>

                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">排行榜中钱数</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="isrankqianshu" value="0" {if $config['isrankqianshu']==0} checked="checked"{/if} type="radio"> 显示
							</label>
							<label class="radio-inline">
								<input name="isrankqianshu" value="1" {if $config['isrankqianshu']==1} checked="checked"{/if} type="radio"> 不显示
							</label>
						</div>
                </div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">排行榜中包含未提现</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iscommshowfail" value="0" {if $config['iscommshowfail']==0} checked="checked"{/if} type="radio"> 不包含
						</label>
						<label class="radio-inline">
							<input name="iscommshowfail" value="1" {if $config['iscommshowfail']==1} checked="checked"{/if} type="radio"> 包含
						</label>
						<span class="help-block">排行榜中默认只显示已发放的红包数排名，若需不发放也统计在内需选择包含，同时会在我的红包里显示未发放的名单</span>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">我的红包</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="ismycomm" value="0" {if $config['ismycomm']==0} checked="checked"{/if} type="radio"> 默认：排行榜底部+有红包才显示
						</label>
						<label class="radio-inline">
							<input name="ismycomm" value="1" {if $config['ismycomm']==1} checked="checked"{/if} type="radio"> 排行榜底部+没红包也显示
						</label>
						<label class="radio-inline">
							<input name="ismycomm" value="2" {if $config['ismycomm']==2} checked="checked"{/if} type="radio"> 首图底部+没红包也显示
						</label>
					</div>
				</div>

				{if $system['ruanjian']==2}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">红包排行榜样式</label>
					<div class="col-sm-8 col-xs-12">
						<div class="col-sm-6 col-xs-12">
							{php echo view_form_field_image('commlistimg',$config['commlistimg']);}
							<span class="help-block">顶图：<a style="color: #000000" href="https://css2020.yixuan.net/2020css/fcpdd/images/phb.png" target="_blank">点击下载模版</a></span>
						</div>
						<div class="col-sm-6 col-xs-12">
							{php echo view_form_field_image('commlistimgbg',$config['commlistimgbg']);}
							<span class="help-block">底图：<a style="color: #000000" href="https://css2020.yixuan.net/2020css/fcpdd/images/dbg.jpg" target="_blank">点击下载模版</a></span>
						</div>
					</div>
				</div>
				{else}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">红包排行榜样式</label>
					<div class="col-sm-10 col-xs-12">
						<div class="col-sm-5 col-xs-12">
							{php echo view_form_field_image('commlistimg',$config['commlistimg']);}
							<span class="help-block">顶图：<a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/rank5/rank.png" target="_blank">点击下载模版</a></span>
						</div>
						<div class="col-sm-7 col-xs-12">
							<div class="col-sm-12 col-xs-12">
								{php echo view_form_field_color('commlistbg1',$config['commlistbg1']);}
								<span class="help-block">排行榜底色</span>
							</div>
							<div class="col-sm-12 col-xs-12">
								{php echo view_form_field_color('commlistbg2',$config['commlistbg2']);}
								<span class="help-block">排行榜每行底色</span>
							</div>
						</div>
					</div>
				</div>
				{/if}

                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">分销指示图标</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_form_field_image('fenxiaotip',$config['fenxiaotip']);}
                       <span class="help-block">尺寸大小:330*228 格式：PNG</span>
                       <span class="help-block">点击链接右下角红包图标,出现的提示图片，透明背景，尽量不出现分享字眼 <a style="color: #000000" href="https://css2019.yixuan.net/2019css/default/images/fenxiao.psd" target="_blank">点击下载模版</a></span>
                    </div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">右下角红包图标</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
                    <div class="col-sm-2 col-xs-12">
						<label class="radio-inline">
							<input name="ishbicon" value="0" {if $config['ishbicon']==0} checked="checked"{/if} type="radio"> 显示
						</label>
						<label class="radio-inline">
							<input name="ishbicon" value="1" {if $config['ishbicon']==1} checked="checked"{/if} type="radio"> 不显示
						</label>
					</div>
						<div class="col-sm-4 col-xs-12">
						<label class="radio-inline">
							<input name="fenxiaourl" value="0" {if $config['fenxiaourl']==0} checked="checked"{/if} type="radio"> 显示分享提示
						</label>
						<label class="radio-inline">
							<input name="fenxiaourl" value="1" {if $config['fenxiaourl']==1} checked="checked"{/if} type="radio"> 进入我的红包
						</label>
						</div>
                    <div class="col-sm-6 col-xs-12">
                       {php echo view_form_field_image('hbtip',$config['hbtip']);}
                    </div>
                    <div class="col-sm-12 col-xs-12">
                       <span class="help-block">尺寸大小:200*200 格式：PNG</span>
                       <span class="help-block">右下角红包图标,出现的提示图片，透明背景，绝对不出现分享等违规字眼 <a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/hongbao.psd" target="_blank">点击下载模版</a></span>
                    </div>
                </div>
                </div>
				{if $system['fenxiao07'] == '1'}
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">摇一摇红包指示图</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_form_field_image('yaoyiyaotip',$config['yaoyiyaotip']);}
                       <span class="help-block">为空则显示默认图</span>
                    </div>
                </div>
				{/if}
			</div>
		</div>
		{if $system['fenxiao01'] >0 }
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">{if $system['jiage'] >0 }第一价格：{/if}{if $system['fenxiao01'] ==1 }一级分销{elseif $system['fenxiao01'] ==2 }二级分销{else}三级分销{/if}</div>
			<div class="panel-body" style="">

               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">员工是否有分销红包</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="commworker" value="0" {if $config['commworker']==0} checked="checked"{/if} type="radio"> 有
						</label>
						<label class="radio-inline">
							<input name="commworker" value="1" {if $config['commworker']==1} checked="checked"{/if} type="radio"> 没有
						</label>
					</div>
                </div>
               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">分销要求</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="intheme" value="0" {if $config['intheme']==0} checked="checked"{/if} type="radio"> 所有
						</label>
						<label class="radio-inline">
							<input name="intheme" value="1" {if $config['intheme']==1} checked="checked"{/if} type="radio"> 已支付的客户(员工不支付也可收到)
						</label>
						<span class="help-block" style="color: red;">注意：选择已支付的客户,此客户支付后,别人通过他的链接报名,才能收到红包</span>
					</div>
                </div>
                {if $system['fenxiao01'] >1 }
               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">绑定上下级</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isfreeze" value="0" {if $config['isfreeze']==0} checked="checked"{/if} type="radio"> 不绑定
						</label>
						<label class="radio-inline">
							<input name="isfreeze" value="1" {if $config['isfreeze']==1} checked="checked"{/if} type="radio"> 绑定
						</label>
						<span class="help-block" style="color: red;">开启二级,三级分销时,建议开启绑定上下级关系,当客户付款后自动绑定上级</span>
						<span class="help-block" style="color: red;">未绑定或一级分销时,上级为上一次打开谁的链接,上级为谁</span>
					</div>
                </div>
                {/if}
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">一级分销红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm11" value="{$config['comm11']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm12" value="{$config['comm12']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm13" value="{$config['comm13']}" type="text">
							</div>
	                    </div>
               	</div>
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm11_2" value="{$config['comm11_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm12_2" value="{$config['comm12_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm13_2" value="{$config['comm13_2']}" type="text">
							</div>
	                    </div>
               	</div>
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm11_3" value="{$config['comm11_3']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm12_3" value="{$config['comm12_3']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" readonly value="=100-上方概率" type="text">
							</div>
							<span class="help-block" >注意：A推荐B，B付款，奖励A，属于一级分销，最小金额必须大于0.3元，概率为整数不可带%号</span>
	                    </div>
               	</div>
<!-- 				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">一级参团红包</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm1" value="{$config['comm1']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm2" value="{$config['comm2']}" type="text">
						</div>
					</div>
				</div>
 -->			{if $system['fenxiao01'] >1 }
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">二级分销红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm21" value="{$config['comm21']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm22" value="{$config['comm22']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm23" value="{$config['comm23']}" type="text">
							</div>
	                    </div>
               	</div>
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm21_2" value="{$config['comm21_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm22_2" value="{$config['comm22_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" readonly  value="=100-上方概率" type="text">
							</div>
							<span class="help-block" >注意：A推荐B，B推荐C，C推荐D，D成交后奖励B的钱，最小金额必须大于0.3元</span>
	                    </div>
               	</div>
               	{/if}
               	{if $system['fenxiao01'] ==3 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">三级分销红包</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm31" value="{$config['comm31']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm32" value="{$config['comm32']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm33" value="{$config['comm33']}" type="text">
						</div>
					</div>
				</div>
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm31_2" value="{$config['comm31_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm32_2" value="{$config['comm32_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" readonly  value="=100-上方概率" type="text">
							</div>
						<span class="help-block" >注意：A推荐B，B推荐C，C推荐D，D成交后奖励A的钱,最小金额必须大于0.3元</span>
	                    </div>
               	</div>
				{/if}
			</div>
		</div>

		{if $system['jiage'] >0 }
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">第二个价格：{if $system['fenxiao01'] ==1 }一级分销{elseif $system['fenxiao01'] ==2 }二级分销{else}三级分销{/if}</div>
			<div class="panel-body" style="">
				{if $system['fenxiao06'] == '1'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">员工提成</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm61_jiage2" value="{$config['comm61_jiage2']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm62_jiage2" value="{$config['comm62_jiage2']}" type="text">
						</div>
					</div>
				</div>
				{/if}
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">一级分销红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm11_jiage2" value="{$config['comm11_jiage2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm12_jiage2" value="{$config['comm12_jiage2']}" type="text">
							</div>
	                    </div>
               	</div>
				<!-- <div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">一级参团红包</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm1_jiage2" value="{$config['comm1_jiage2']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm2_jiage2" value="{$config['comm2_jiage2']}" type="text">
						</div>
					</div>
				</div> -->
				{if $system['fenxiao01'] >1 }
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">二级分销红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm21_jiage2" value="{$config['comm21_jiage2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm22_jiage2" value="{$config['comm22_jiage2']}" type="text">
							</div>
	                    </div>
               	</div>
               	{/if}
               	{if $system['fenxiao01'] ==3 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">三级分销红包</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm31_jiage2" value="{$config['comm31_jiage2']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm32_jiage2" value="{$config['comm32_jiage2']}" type="text">
						</div>
					</div>
				</div>
				{/if}
			</div>
		</div>
		
		{/if}

		{if $system['jiage'] >0 }
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">第三个价格：{if $system['fenxiao01'] ==1 }一级分销{elseif $system['fenxiao01'] ==2 }二级分销{else}三级分销{/if}</div>
			<div class="panel-body" style="">
				{if $system['fenxiao06'] == '1'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">员工提成</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm61_jiage3" value="{$config['comm61_jiage3']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm62_jiage3" value="{$config['comm62_jiage3']}" type="text">
						</div>
					</div>
				</div>
				{/if}
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">一级分销红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm11_jiage3" value="{$config['comm11_jiage3']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm12_jiage3" value="{$config['comm12_jiage3']}" type="text">
							</div>
	                    </div>
               	</div>
				<!-- <div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">一级参团红包</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm1_jiage3" value="{$config['comm1_jiage3']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm2_jiage3" value="{$config['comm2_jiage3']}" type="text">
						</div>
					</div>
				</div> -->
				{if $system['fenxiao01'] >1 }
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">二级分销红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm21_jiage3" value="{$config['comm21_jiage3']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm22_jiage3" value="{$config['comm22_jiage3']}" type="text">
							</div>
	                    </div>
               	</div>
               	{/if}
               	{if $system['fenxiao01'] ==3 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">三级分销红包</label>
					<div class="col-sm-6 col-xs-6">
						<div class="input-group">
							<input class="form-control"  name="comm31_jiage3" value="{$config['comm31_jiage3']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm32_jiage3" value="{$config['comm32_jiage3']}" type="text">
						</div>
					</div>
				</div>
				{/if}
			</div>
		</div>
		
		{/if}
		{/if}

		{if $system['fenxiao04'] ==1 || $system['fenxiao05'] ==1 || $system['fenxiao07'] ==1}
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">裂变红包</div>
			<div class="panel-body" style="">
               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">裂变红包发放模式</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="comm4autored" value="0" {if $config['comm4autored']==0} checked="checked"{/if} type="radio"> 商家手工发放
						</label>
						<label class="radio-inline">
							<input name="comm4autored" value="3" {if $config['comm4autored']==3} checked="checked"{/if} type="radio"> 
							客户手工提现
						</label>
						<label class="radio-inline">
							<input name="comm4autored" value="1" {if $config['comm4autored']==1} checked="checked"{/if} type="radio"> 系统自动发放
						</label>
						<label class="radio-inline">
							<input name="comm4autored" value="2" {if $config['comm4autored']==2} checked="checked"{/if} type="radio"> 在下方时间之前自动发放
						</label>
						{php echo view_form_field_date('comm4autoredtime', date('Y-m-d H:i:s',$config['comm4autoredtime']),true);}
						<span class="help-block" style="color: red;">注意：由于裂变红包，不需要支付就可以领，经常会碰到一人多号同时领，甚至职业团队来刷红包，我们增加了多重防刷机制，但我们还是建议使用手工后台发放，确保资金安全。且出现所有多发或盗刷红包均由店家自行承担，与无关。</span>
					</div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">手工发放提示</label>
					<div class="col-sm-8 col-xs-12">
						<input class="form-control" name="comm4tips" value="{if empty($config['comm4tips'])}红包#fee元已提现，将在24小时内到帐，请在您的微信零钱中查收{else}{$config['comm4tips']}{/if}" type="text">

						<span class="help-block" >如：红包#fee元已提现，将在24小时内到帐，请在您的微信零钱中查收</span>
					</div>
				</div>
               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">员工是否有裂变红包</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="comm4worker" value="0" {if $config['comm4worker']==0} checked="checked"{/if} type="radio"> 有
						</label>
						<label class="radio-inline">
							<input name="comm4worker" value="1" {if $config['comm4worker']==1} checked="checked"{/if} type="radio"> 没有
						</label>
					</div>
                </div>
               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">是否开启大数据</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="comm4dashuju" value="0" {if $config['comm4dashuju']==0} checked="checked"{/if} type="radio"> 开启【强烈推荐】
						</label>
						<label class="radio-inline">
							<input name="comm4dashuju" value="1" {if $config['comm4dashuju']==1} checked="checked"{/if} type="radio"> 关闭
						</label>
						<span class="help-block" >防止盗刷红包非常有力的技术，强烈建议开启(前50名领取的不受此功能限制)</span>
					</div>
                </div>
<!--                	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">是否采集资料</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="comm4ziliao" value="0" {if $config['comm4ziliao']==0} checked="checked"{/if} type="radio"> 不采集
						</label>
						<label class="radio-inline">
							<input name="comm4ziliao" value="1" {if $config['comm4ziliao']==1} checked="checked"{/if} type="radio"> 采集
						</label>
					</div>
                </div> -->
				{if $system['fenxiao04'] == '1' || $system['fenxiao07'] == '1'}

				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">裂变红包金额</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm41" value="{$config['comm41']}" type="text">
								<span class="input-group-addon"> - </span>
								<input class="form-control"  name="comm42" value="{$config['comm42']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm43" value="{$config['comm43']}" type="text">
							</div>
	                    </div>
               	</div>
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control" name="comm41_2" value="{$config['comm41_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm42_2" value="{$config['comm42_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm43_2" value="{$config['comm43_2']}" type="text">
							</div>
	                    </div>
               	</div>
				<div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm41_3" value="{$config['comm41_3']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm42_3" value="{$config['comm42_3']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" readonly value="=100-上方概率" type="text">
							</div>

						<span class="help-block" >最小金额值为0表未开启,转发红包:客户符合转发规则,进行转发即可收到红包</span>
						<!-- <span class="help-block" >可设置0.01以上的小红包,系统会进行累计,当累计收到的红包大于0.3元时系统自动发放</span> -->
					</div>
               	</div>
				{/if}
				{if $system['fenxiao07'] == '1'}
				<!-- <div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">摇一摇红包</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">第一天</span>
							<input class="form-control"  name="comm711" value="{$config['comm711']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm712" value="{$config['comm712']}" type="text">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="comm71type">
				         		<option value="0" {if $config['comm71type'] == 0 }selected="selected"{/if}>无</option>
				         		<option value="1" {if $config['comm71type'] == 1 }selected="selected"{/if}>红包:先摇后转发</option>
				         		<option value="2" {if $config['comm71type'] == 2 }selected="selected"{/if}>红包:转发</option>
				         		<option value="3" {if $config['comm71type'] == 3 }selected="selected"{/if}>礼品:先摇后转发</option>
				         		<option value="4" {if $config['comm71type'] == 4 }selected="selected"{/if}>礼品:转发</option>
				     		 </select>
						</div>
						<div class="input-group">
							<span class="input-group-addon">第二天</span>
							<input class="form-control"  name="comm721" value="{$config['comm721']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm722" value="{$config['comm722']}" type="text">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="comm72type">
				         		<option value="0" {if $config['comm72type'] == 0 }selected="selected"{/if}>无</option>
				         		<option value="1" {if $config['comm72type'] == 1 }selected="selected"{/if}>红包:先摇后转发</option>
				         		<option value="2" {if $config['comm72type'] == 2 }selected="selected"{/if}>红包:转发</option>
				         		<option value="3" {if $config['comm72type'] == 3 }selected="selected"{/if}>礼品:先摇后转发</option>
				         		<option value="4" {if $config['comm72type'] == 4 }selected="selected"{/if}>礼品:转发</option>
				     		 </select>
						</div>
						<div class="input-group">
							<span class="input-group-addon">第三天</span>
							<input class="form-control"  name="comm731" value="{$config['comm731']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm732" value="{$config['comm732']}" type="text">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="comm73type">
				         		<option value="0" {if $config['comm73type'] == 0 }selected="selected"{/if}>无</option>
				         		<option value="1" {if $config['comm73type'] == 1 }selected="selected"{/if}>红包:先摇后转发</option>
				         		<option value="2" {if $config['comm73type'] == 2 }selected="selected"{/if}>红包:转发</option>
				         		<option value="3" {if $config['comm73type'] == 3 }selected="selected"{/if}>礼品:先摇后转发</option>
				         		<option value="4" {if $config['comm73type'] == 4 }selected="selected"{/if}>礼品:转发</option>
				     		 </select>
						</div>
						<div class="input-group">
							<span class="input-group-addon">第四天</span>
							<input class="form-control"  name="comm741" value="{$config['comm741']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm742" value="{$config['comm742']}" type="text">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="comm74type">
				         		<option value="0" {if $config['comm74type'] == 0 }selected="selected"{/if}>无</option>
				         		<option value="1" {if $config['comm74type'] == 1 }selected="selected"{/if}>红包:先摇后转发</option>
				         		<option value="2" {if $config['comm74type'] == 2 }selected="selected"{/if}>红包:转发</option>
				         		<option value="3" {if $config['comm74type'] == 3 }selected="selected"{/if}>礼品:先摇后转发</option>
				         		<option value="4" {if $config['comm74type'] == 4 }selected="selected"{/if}>礼品:转发</option>
				     		 </select>
						</div> 
						<div class="input-group">
							<span class="input-group-addon">第五天</span>
							<input class="form-control"  name="comm751" value="{$config['comm751']}" type="text">
							<span class="input-group-addon"> - </span>
							<input class="form-control"  name="comm752" value="{$config['comm752']}" type="text">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="comm75type">
				         		<option value="0" {if $config['comm75type'] == 0 }selected="selected"{/if}>无</option>
				         		<option value="1" {if $config['comm75type'] == 1 }selected="selected"{/if}>红包:先摇后转发</option>
				         		<option value="2" {if $config['comm75type'] == 2 }selected="selected"{/if}>红包:转发</option>
				         		<option value="3" {if $config['comm75type'] == 3 }selected="selected"{/if}>礼品:先摇后转发</option>
				         		<option value="4" {if $config['comm75type'] == 4 }selected="selected"{/if}>礼品:转发</option>
				     		 </select>
						</div>
						<span class="help-block" >红包金额需设置0.3以上的红包</span>
						<span class="help-block" >先摇后转发:客户摇一摇会收到红包/礼品,转发朋友圈即可到帐</span>
						<span class="help-block" >转发:无需摇一摇,客户转发朋友圈即可获得红包/礼品并到帐</span>
						<span class="help-block" >天数:为用户参与的天数,比如活动进行了10天一个新客户参与,属于客户的第一天</span>
					</div>
				</div> -->
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">摇一摇礼品</label>
					<div class="col-sm-8 col-xs-12">
						<div id="lipinoptions">
							<div class="tpl">
								{if !empty($config['lipinoptions'])}
									{loop $config['lipinoptions'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">礼品名称</span>
											<input type="text" name="lipinoptions[]" value="{$row}" class="form-control" placeholder="礼品名称">
											<span class="input-group-addon"><a href="javascript:;" class="dellipinOptions"><i class="fa fa-times"></i></a></span>
										</div>
									{/loop}
								{else}
									<div class="input-group">
										<span class="input-group-addon">礼品名称</span>
										<input type="text" name="lipinoptions[]" class="form-control" placeholder="礼品名称">
										<span class="input-group-addon"><a href="javascript:;" class="dellipinOptions"><i  class="fa fa-times"></i></a></span>
									</div>
								{/if}
							</div>
							<a href="javascript:;" class="addlipinOptions" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加礼品</a>
						</div>
					</div>
				</div>
				{/if}
				{if $system['fenxiao05'] == '1'}
				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">新客户阅读红包</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm51" value="{$config['comm51']}" type="text">
								<span class="input-group-addon"> - </span>
								<input class="form-control"  name="comm52" value="{$config['comm52']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm53" value="{$config['comm53']}" type="text">
							</div>
	                    </div>
               	</div>

				<div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control" name="comm51_2" value="{$config['comm51_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm52_2" value="{$config['comm52_2']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" placeholder="例如:100" name="comm53_2" value="{$config['comm53_2']}" type="text">
							</div>
	                    </div>
               	</div>
				<div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label"></label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control"  name="comm51_3" value="{$config['comm51_3']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control"  name="comm52_3" value="{$config['comm52_3']}" type="text">
								<span class="input-group-addon" id="basic-addon2">概率</span>
								<input class="form-control" readonly value="=100-上方概率" type="text">
							</div>
						<span class="help-block" >阅读红包:客户转发后,新客户查看阅读,会给到转发者一个随机金额红包</span>
					</div>
               	</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">新客户阅读红包</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon"><span style="color: red;">*</span>每天多少个</span>
							<input class="form-control" placeholder="默认为100" name="comm5daynum" value="{if empty($config['comm5daynum'])}100{else}{$config['comm5daynum']}{/if}" type="text">
							<span class="input-group-addon">总共多少个</span>
							<input class="form-control" placeholder="默认为300" name="comm5sum" value="{if empty($config['comm5sum'])}300{else}{$config['comm5sum']}{/if}" type="text">
						</div>
						<span class="help-block" >(必填)每天多少个：一个客户,每天可以领到多少个阅读红包</span>
						<span class="help-block" >总计多少个：一个客户,总计可以领到多少个阅读红包</span>
						<span class="help-block" >红包规则2-5对于阅读红包生效。</span>
					</div>
				</div>
				{/if}
				{if $system['fenxiao04'] == '1' || $system['fenxiao07'] == '1'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">裂变红包规则1</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon"><span style="color: red;">*</span>每天多少个</span>
							<input class="form-control" placeholder="例如:10" name="comm4daynum" value="{if empty($config['comm4daynum'])}1{else}{$config['comm4daynum']}{/if}" type="text">
							<span class="input-group-addon">总共多少个</span>
							<input class="form-control" placeholder="例如:100" name="comm4sum" value="{if empty($config['comm4sum'])}1{else}{$config['comm4sum']}{/if}" type="text">
						</div>
						<span class="help-block" >注意：为了防止恶意刷红包，强裂建议进行设置(单个客户只可以领1个)</span>
						<span class="help-block" style="color: red;">(必填)每天多少个：一个客户,每天可以领到多少个裂变红包</span>
						<span class="help-block" >总计多少个：一个客户,总计可以领到多少个裂变红包</span>
					</div>
				</div>
				{/if}

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">裂变红包规则2</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">最近3小时</span>
			                  <select class="form-control" name="comm4type">
			                          <option value="0" {if $config['comm4type']==0}selected="selected"{/if}>无限制</option>
			                          <option value="1" {if $config['comm4type']==1}selected="selected"{/if} >成交0单，停发【推荐】</option>
			                          <option value="2" {if $config['comm4type']==2}selected="selected"{/if} >成交少于2单，停发</option>
			                          <option value="3" {if $config['comm4type']==3}selected="selected"{/if} >成交少于3单，停发</option>
			                          <option value="4" {if $config['comm4type']==4}selected="selected"{/if} >成交少于5单，停发</option>
			                          <option value="5" {if $config['comm4type']==5}selected="selected"{/if} >成交少于10单，停发</option>
			                          <option value="6" {if $config['comm4type']==6}selected="selected"{/if} >成交少于20单，停发</option>
			                  </select>
						<span class="input-group-addon">最近3小时</span>
			                  <select class="form-control" name="comm4typehb">
			                          <option value="0" {if $config['comm4typehb']==0}selected="selected"{/if}>无限制</option>
			                          <option value="1" {if $config['comm4typehb']==1}selected="selected"{/if} >裂变红包大于收入，停发【推荐】</option>
			                          <option value="2" {if $config['comm4typehb']==2}selected="selected"{/if} >红包大于收入20元，停发</option>
			                          <option value="3" {if $config['comm4typehb']==3}selected="selected"{/if} >红包大于收入50元，停发</option>
			                          <option value="4" {if $config['comm4typehb']==4}selected="selected"{/if} >红包大于收入100元，停发</option>
			                          <option value="5" {if $config['comm4typehb']==5}selected="selected"{/if} >红包大于收入200元，停发</option>
			                  </select>
						<span class="input-group-addon">员工异常自动锁定</span>
			                  <select class="form-control" name="comm4typeyg">
			                          <option value="0" {if $config['comm4typeyg']==0}selected="selected"{/if}>无限制</option>
			                          <option value="1" {if $config['comm4typeyg']==1}selected="selected"{/if} >转发量超浏览量的30%</option>
			                          <option value="2" {if $config['comm4typeyg']==2}selected="selected"{/if} >转发量超浏览量的40%</option>
			                          <option value="3" {if $config['comm4typeyg']==3}selected="selected"{/if} >转发量超浏览量的50%【推荐】</option>
			                          <option value="4" {if $config['comm4typeyg']==4}selected="selected"{/if} >转发量超浏览量的60%</option>
			                          <option value="5" {if $config['comm4typeyg']==5}selected="selected"{/if} >转发量超浏览量的70%</option>
			                          <option value="6" {if $config['comm4typeyg']==6}selected="selected"{/if} >转发量超成交量的5倍</option>
			                          <option value="7" {if $config['comm4typeyg']==7}selected="selected"{/if} >转发量超成交量的10倍</option>
			                          <option value="8" {if $config['comm4typeyg']==8}selected="selected"{/if} >转发量超成交量的15倍</option>
			                          <option value="9" {if $config['comm4typeyg']==9}selected="selected"{/if} >转发量超成交量的20倍</option>
			                          <option value="10" {if $config['comm4typeyg']==10}selected="selected"{/if} >转发量超成交量的25倍</option>
			                          <option value="11" {if $config['comm4typeyg']==11}selected="selected"{/if} >转发量超成交量的30倍</option>
			                          <option value="12" {if $config['comm4typeyg']==12}selected="selected"{/if} >转发量超成交量的40倍</option>
			                          <option value="13" {if $config['comm4typeyg']==13}selected="selected"{/if} >转发量超成交量的50倍</option>
			                  </select>
						</div>
						<span class="help-block" >最近3小时：成交0单停止发放裂变红包，防止活动中后期无人关注后台，红包依旧发放</span>
						<span class="help-block" >最近3小时：裂变红包超出收入20元以上，系统自动停发（收入不减三级分销支出的金额）</span>
						<span class="help-block" >员工异常自动锁定：如转发量600次,浏览量1000次,比例是60%,若我们选择了50%锁定,则此员工转发出去的链接,将停用裂变红包功能,触发些判断条件是转发量大于500次,也可在员工业绩中手工锁定员工</span>
						<span class="help-block" >(前50名领取的不受此功能限制)</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">裂变红包规则3</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">多次领取间隔分钟</span>
							<input class="form-control" placeholder="例如:20" name="comm4time" value="{$config['comm4time']}" type="text">
							<span class="input-group-addon">多少秒后分享</span>
							<input class="form-control" placeholder="如:20" name="comm4sharetime" value="{if empty($config['comm4sharetime'])}10{else}{$config['comm4sharetime']}{/if}" type="text">
							{if $system['fenxiao07'] == '1'}
							<span class="input-group-addon">多少秒后摇一摇</span>
							<input class="form-control" placeholder="如:10" name="comm4yaotime" value="{if empty($config['comm4yaotime'])}5{else}{$config['comm4yaotime']}{/if}" type="text">
							{/if}
						</div>
						<span class="help-block" >间隔分钟：客户两次转发的时间间隔,单位分钟</span>
						<span class="help-block" >多少秒后分享(建议10秒),客户第一次访问链接必须查看链接多少秒以上才可以得到红包,否则永久得不到红包</span>
						{if $system['fenxiao07'] == '1'}
						<span class="help-block" >多少秒后摇一摇(建议5秒),客户第一次访问链接必须查看链接多少秒以上才可以摇一摇,否则永久得不到红包</span>
						{/if}
						<span class="help-block" >被封的客户可以在裂变记录里进行解封,解封后可正常参与</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">裂变红包规则4</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon"><span style="color: red;">*</span>每天预算</span>
							<input class="form-control" placeholder="如:500" name="comm4day" value="{$config['comm4day']}" type="text">
							<span class="input-group-addon"><span style="color: red;">*</span>每小时预算</span>
							<input class="form-control" placeholder="如:50" name="comm4hour" value="{$config['comm4hour']}" type="text">
							<span class="input-group-addon">同1网络</span>
							<input class="form-control" placeholder="如:5" name="comm4ip" value="{if empty($config['comm4ip'])}5{else}{$config['comm4ip']}{/if}" type="text">
						</div>
						<span class="help-block" style="color: red;">(必填)每天预算多少钱(单位:元)：可从小到大，逐渐调整，不建议放开</span>
						<span class="help-block" style="color: red;">(必填)每小时预算多少钱(单位:元) 每天凌晨1-6点系统不会发裂变红包</span>
						<span class="help-block" >同1个IP多少钱(单位:元)：同一个网络下的总红包钱数</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">裂变红包地区限制5</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
			              <span class="input-group-addon"><span style="color: red;">*</span>城市：</span>
			              <input class="form-control" type="text" value="{$config['comm4city']}" class="span2" name="comm4city">
			              <span class="input-group-addon">定位方式：</span>
			              <div class="input-group-btn" style="width:130px">
			                  <select class="form-control" name="locationtype">
			                          <option value="0" {if $config['locationtype']==0}selected="selected"{/if} >IP地址</option>
			                          <option value="1" {if $config['locationtype']==1}selected="selected"{/if}>微信GPS</option>
			                  </select>
			              </div>
			            </div>
						<span class="help-block" style="color: red;">请填写活动地区，例如：山东,青岛等。可以支持，省，市县，区；为空则不限制地区。多个地区用“,”分割</span>
						<span class="help-block" >IP地址：由于是移动联通电信等网络全省统一出口，尽量限制到省级</span>
						<span class="help-block" >微信GPS：可定位到县，区，不过建议还是限制到市，且此功能会弹出客户授权定位</span>
					</div>
				</div>
               	<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">裂变红包要求</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="comm4ispay" value="0" {if $config['comm4ispay']==0} checked="checked"{/if} type="radio"> 所有
						</label>
						<label class="radio-inline">
							<input name="comm4ispay" value="1" {if $config['comm4ispay']==1} checked="checked"{/if} type="radio"> 已支付的客户
						</label>
						<span class="help-block">注意：选择支付的客户,此客户已支付裂变才可以收到红包</span>
					</div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">我的红包里未到帐明细</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iscommshowwait" value="0" {if $config['iscommshowwait']==0} checked="checked"{/if} type="radio"> 不显示
						</label>
						<label class="radio-inline">
							<input name="iscommshowwait" value="1" {if $config['iscommshowwait']==1} checked="checked"{/if} type="radio"> 显示
						</label>
						<span class="help-block">我的红包是否显示未到帐的明细</span>
					</div>
				</div>
			</div>
		</div>
		{/if}

		{if $system['autored']==2}
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">红包新玩法</div>
			<div class="panel-body" style="">
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">提现限额</label>
					<div class="col-sm-6 col-xs-12">
						<div class="input-group">
						<input type="text" class="form-control"  placeholder="例如:100" name="hbtixian"  value="{$config['hbtixian']}">
						<span class="input-group-addon">元</span>						
						<select class="form-control" name="hbtixianmode">
			         		<option value="0" {if $config['hbtixianmode'] == 0 }selected="selected"{/if}>仅限第一次提现</option>
			         		<option value="1" {if $config['hbtixianmode'] == 1 }selected="selected"{/if}>每次提现都限</option>
			     		 </select>
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">进入链接获得</label>
					<div class="col-sm-6 col-xs-12">
						<div class="input-group">
							<input class="form-control"  name="hbopenfee1" value="{$config['hbopenfee1']}" type="text">
							<span class="input-group-addon" id="basic-addon2"> - </span>
							<input class="form-control"  name="hbopenfee2" value="{$config['hbopenfee2']}" type="text">
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">自己报名获得</label>
					<div class="col-sm-6 col-xs-12">
						<div class="input-group">
							<input class="form-control"  name="hborderfee1" value="{$config['hborderfee1']}" type="text">
							<span class="input-group-addon" id="basic-addon2"> - </span>
							<input class="form-control"  name="hborderfee2" value="{$config['hborderfee2']}" type="text">
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">弹出图片</label>
					<div class="col-sm-8 col-xs-12">
					    {php echo view_form_field_image('hbopentips',$config['hbopentips']);}
						<span class="help-block">进入链接的红包提示，样<a style="color: #000000" href="https://css2020.yixuan.net/2020css/fcpdd/images/hbopentips.zip" target="_blank">点击下载模版</a></span>
					</div>
				</div>

			</div>
		</div>
		{/if}
	</div>